//
//  TTNavView.m
//  Adorable_Things
//
//  Created by lanou on 16/1/14.
//  Copyright © 2016年 Banana Inc. All rights reserved.
//

#import "TTNavView.h"

@implementation TTNavView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth / 2 - 60, 10, 120, 25)];
        _titleLabel.font = [UIFont systemFontOfSize:20];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_titleLabel];
        
        UIImageView *line = [[UIImageView alloc] initWithFrame:CGRectMake(0, frame.size.height - .6, kWidth, .6)];
        line.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:line];
        
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
